package co.com.ticci.autolavado.vo;

import java.io.Serializable;
import javax.persistence.*;

/**
 * The primary key class for the ticci_vehiculo database table.
 * 
 */
@Embeddable
public class TicciVehiculoPK implements Serializable {
	//default serial version id, required for serializable classes.
	private static final long serialVersionUID = 1L;

	@Column(name="EMPR_CONS")
	private int emprCons;

	@Column(name="VEHI_CONS")
	private long vehiCons;

	public TicciVehiculoPK() {
	}
	public int getEmprCons() {
		return this.emprCons;
	}
	public void setEmprCons(int emprCons) {
		this.emprCons = emprCons;
	}
	public long getVehiCons() {
		return this.vehiCons;
	}
	public void setVehiCons(long vehiCons) {
		this.vehiCons = vehiCons;
	}

	public boolean equals(Object other) {
		if (this == other) {
			return true;
		}
		if (!(other instanceof TicciVehiculoPK)) {
			return false;
		}
		TicciVehiculoPK castOther = (TicciVehiculoPK)other;
		return 
			(this.emprCons == castOther.emprCons)
			&& (this.vehiCons == castOther.vehiCons);
	}

	public int hashCode() {
		final int prime = 31;
		int hash = 17;
		hash = hash * prime + this.emprCons;
		hash = hash * prime + ((int) (this.vehiCons ^ (this.vehiCons >>> 32)));
		
		return hash;
	}
}